<?php
/**
 * 连接数据库
 */
$conn=mysqli_connect('127.0.0.1','root','123456','test') or die('数据库连接失败！');
mysqli_query($conn,'set name utf8');